package org.jeecg.modules.zhaojd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.zhaojd.entity.HqZhaojdDetail;
import org.jeecg.modules.zhaojd.entity.HqZhaojdChif;
import org.jeecg.modules.zhaojd.entity.HqZhaojd;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.zhaojd.vo.HqZhaojdPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 招接待
 * @Author: jeecg-boot
 * @Date:   2020-10-05
 * @Version: V1.0
 */
public interface IHqZhaojdService extends IService<HqZhaojd> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(HqZhaojd hqZhaojd,List<HqZhaojdDetail> hqZhaojdDetailList,List<HqZhaojdChif> hqZhaojdChifList) ;

	public void startFlow(LoginUser user,HqZhaojd hqZhaojd,List<HqZhaojdDetail> hqZhaojdDetailList,List<HqZhaojdChif> hqZhaojdChifList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(HqZhaojd hqZhaojd,List<HqZhaojdDetail> hqZhaojdDetailList,List<HqZhaojdChif> hqZhaojdChifList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

//	public void startFlow(HqZhaojd hqZhaojd, LoginUser user);

	public void complateTask(LoginUser loginUser, String taskId,String processInstanceId, Integer status, String memo);

	public void applyAgain(HqZhaojdPage hqZhaojdPage, LoginUser user);

	IPage<HqZhaojd> myApplyList(Page<HqZhaojd> page, LoginUser user, HqZhaojd hqZhaojd);

	IPage<HqZhaojd> myTodoTasks(Page<HqZhaojd> page, LoginUser user, HqZhaojd hqZhaojd);

	IPage<HqZhaojd> myDoneTasks(Page<HqZhaojd> page, LoginUser user, HqZhaojd hqZhaojd);
	
}
